package com.rongke.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.rongke.mapper.GoodsRecommendMapper;
import com.rongke.model.GoodsRecommend;
import com.rongke.service.GoodsRecommendService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @GoodsRecommendServiceImpl
 * @商品推荐ServiceImpl
 * @version : Ver 1.0
 */
@Service
public class GoodsRecommendServiceImpl extends ServiceImpl<GoodsRecommendMapper, GoodsRecommend> implements GoodsRecommendService {

    @Autowired
    private GoodsRecommendMapper goodsRecommendMapper;

    /**
     * @根据条件查找商品推荐
     * @param goodsRecommend
     * @return
     */
    @Override
    public List<GoodsRecommend> selectByCondition(GoodsRecommend goodsRecommend) {
        return goodsRecommendMapper.selectByCondition(goodsRecommend);
    }
}
